package com.iscale.service;

import com.iscale.model.entity.SysDictionary;
import com.baomidou.mybatisplus.service.IService;
import com.iscale.util.ResponseCode;

import java.util.List;

/**
 * <p>
 * 字典 服务类
 * </p>
 *
 * @author Andychen
 * @since 2017-03-08
 */
public interface SysDictionaryService extends IService<SysDictionary> {

    /**
     * 更新 保存数据字典
     * @param sysDictionary
     */
	public ResponseCode saveOrUpdateDictionary(SysDictionary sysDictionary);

    /**
     * 根据KEY 查找对象
     * @param key
     * @return
     */
    public String getSysDictionaryByKey(String key);

    /**
     * 查找数据字典
     * @param pid
     * @param keyName
     * @return
     */
    public List<SysDictionary> selectDictionary(Long pid,String keyName);


    /**
     * 数据字典组
     * @return
     */
    public List<SysDictionary> selectDictionaryGroup();
}
